package com.ruoyi.supplier.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 采购单业务对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */

@Data
public class PurchaseBo {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Integer purchaseId;

    /**
     * 供货商 商户ID
     */
    @NotNull(message = "供货商 商户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long merchantId;

    /**
     * 供货商id
     */
    @NotNull(message = "供货商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer supplierId;

    /**
     * 状态（10待审核 20待拣货 30待取货 40已完成）
     */
    @NotNull(message = "状态（10待审核 20待拣货 30待取货 40已完成）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String other;

    /**
     * 检测状态
     */
    @NotNull(message = "检测状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer checkStatus;

    /**
     * 完成时间
     */
    @NotNull(message = "完成时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date finishedAt;

    /**
     * 审核状态
     */
    @NotNull(message = "审核状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer reviewStatus;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer shopId;

    /**
     * 创建用户
     */
    @NotNull(message = "创建用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer userId;

}
